package com.geek.factory.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.geek.factory.dto.DeviceRepairReportDTO;
import com.geek.factory.entity.DeviceRepairReport;

import java.util.List;

public interface DeviceRepairReportService  extends IService<DeviceRepairReport> {


    // 查询所有报修单 DTO（含产线名称）
    List<DeviceRepairReportDTO> getAllReportsWithLineName();

    // 查询单个 DTO（含产线名称）
    DeviceRepairReportDTO getReportByIdWithLineName(Long id);

    IPage<DeviceRepairReportDTO> getPagedReports(int page, int size);


    boolean updateStatus(Long reportId, String status);


}
